package com.bw.shop2208a.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bw.shop2208a.R
import com.bw.shop2208a.entity.DataGoodsEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class GoodsAdapter2() : BaseQuickAdapter<DataGoodsEntity, BaseViewHolder>(R.layout.item_goods_three) {
    override fun convert(holder: BaseViewHolder, item: DataGoodsEntity) {
        val iv: ImageView = holder.getView(R.id.iv)
        Glide.with(iv).load(item.goods_default_icon).into(iv)
        holder.setText(R.id.tv, item.goods_desc)
        holder.setText(R.id.tv1, "价格:" + item.goods_default_price + "元")
    }
}